﻿@{
    ViewBag.Title = "主页";
}
<script type="text/javascript">
    ////每隔600000ms刷新页面，防止失效
    setInterval("OnRefleshEvery()", 600000);
    function OnRefleshEvery() {
        var date = new Date();
        //            $.post("../Home/IndexReflesh?MenuID=" + getQueryStringRegExp("MenuID") + "&Date=" + date.getTime(), {},
        //             function (data) { debugger; });
        $.ajax({
            url: "../Home/IndexReflesh?MenuID=" + getQueryStringRegExp("MenuID") + "&Date=" + date.getTime(),
            data: "",
            dataType: "json",
            type: "POST",
            contentType: "application/json; charset=utf-8",
            dataFilter: function (data) {
                return data;
            },
            success: function (data) {
                alert(data);
            },
            error: function (fuckedObject) {
                try {
                    alert(fuckedObject);
                    var json = $.parseJSON(fuckedObject.responseText);
                    alert(json.Message);
                } catch (e) {
                    alert('something bad happened');
                }
            }
        });
    }
</script>
<h2>@ViewBag.Message</h2>
<p>
    若要了解有关 ASP.NET MVC 的更多信息，请访问 <a href="http://asp.net/mvc" title="ASP.NET MVC 网站">http://asp.net/mvc</a>。
</p>
